package com.xsf.jieyou.provider.domain;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Table(name = "tb_goods")
public class TbGoods implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    private Long id;

    /**
     * 商品列表ID
     */
    @Column(name = "album_id")
    private Long albumId;

    /**
     * 拍品标题
     */
    @Column(name = "title")
    private String title;

    /**
     * 起拍价
     */
    @Column(name = "start_price")
    private Integer startPrice;

    /**
     * 当前价
     */
    @Column(name = "current_price")
    private Integer currentPrice;

    /**
     * 保证金
     */
    @Column(name = "deposit")
    private Integer deposit;

    /**
     * 最小加价幅度
     */
    @Column(name = "price_lower_offset")
    private Integer priceLowerOffset;

    /**
     * 大头照
     */
    @Column(name = "product_image")
    private String productImage;

    /**
     * 开拍时间
     */
    @Column(name = "start_time")
    private Date startTime;

    /**
     * 状态 1:在拍  0:结束
     */
    @Column(name = "`state`")
    private Integer state;

    /**
     * 创建时间
     */
    @Column(name = "created")
    private Date created;

    /**
     * 更新时间
     */
    @Column(name = "updated")
    private Date updated;

    private static final long serialVersionUID = 1L;
}